package com.usooft.metaTalent.core.system.mapper;

import com.usooft.metaTalent.core.system.entity.RolePermission;
import com.usooft.metaTalent.core.system.query.RolePermissionQuery;
import com.usooft.metaTalent.core.system.wrapper.RolePermissionWrapper;
import java.lang.Long;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RolePermissionMapper {
    int add(RolePermission rolePermission);

    int update(RolePermission rolePermission);

    int delete(RolePermission rolePermission);

    RolePermission get(Long id);

    List<RolePermissionWrapper> list(RolePermissionQuery query);

    int count(@Param("filter") RolePermissionQuery.Filter filter);
}
